<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DiscMaster.Web.Models.CourseLayout>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateLayout
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Create Layout @ <%= Model.Course.name %></h1>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <%= Html.LabelFor(c=>c.name) %>
                <%= Html.EditorFor(c=>c.name) %>
                <%= Html.ValidationMessage("name", "*") %>
            </p>
            <p>
                <%= Html.LabelFor(c => c.description)%>
                <%= Html.EditorFor(c => c.description)%>
                <%= Html.ValidationMessage("description", "*") %>
            </p>
            <p>
                <label for="numberofholes">Number of holes:</label>
                <%= Html.DropDownList("numberofholes", new SelectList(new [] {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36"})) %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

